package org.mech.sefer.entity.dao;

import java.io.Serializable;
import java.util.Collection;

import org.mech.sefer.entity.model.AbstractEntity;

/**
 * <p>
 * The Dao data access object service
 * </p>
 * <p>
 * Date: 7.5.2012 12:55:04
 * </p>
 * 
 * @param <E>
 *            the entity type
 * @author martin.krajc
 */
public interface Dao<E extends AbstractEntity> {

	E findById(Serializable Id);

	void saveOrUpdate(E entity);

	void saveOrUpdate(Collection<E> entity);

	void delete(E entity);

	void delete(Collection<E> entity);

}
